package cn.star.jots.comments.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class Comments {
    @ApiModelProperty(value = "主键id")
    Long id;
    @ApiModelProperty(value = "电影id")
    Long filmId;
    @ApiModelProperty(value = "评论人id")
    String userId;
    @ApiModelProperty(value = "评论内容")
    String content;
    @ApiModelProperty(value = "评分")
    Double rating;
    @ApiModelProperty(value = "是否删除")
    String isDelete;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    Date createTime;
}
